package cn.lanqiao.bigDate.service.data.impl;

import cn.lanqiao.bigDate.entity.data.DataMapd;
import cn.lanqiao.bigDate.mapper.data.DataMapdMapper;
import cn.lanqiao.bigDate.service.data.DataMapdService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class DataMapdServiceImpl implements DataMapdService {
    @Resource
    private DataMapdMapper dataMapdMapper;
    /**
     * cha
     * @return
     */
    @Override
    public List<DataMapd> findDataMaP() {
        QueryWrapper<DataMapd> wrapper = new QueryWrapper<>();
        wrapper.orderByDesc("date");
        List<DataMapd> dataBook = dataMapdMapper.selectList(wrapper);

        return dataBook;
    }
}
